﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>外卖商家添加商品页面</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <meta name="keywords" content="后台模板,后台管理系统,HTML模板">
    <meta name="description" content="基于Bootstrap的后台管理系统模板">
    <meta name="author" content="www.bootstrapmb.com">
    <link href="${pageContext.request.contextPath}/static/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/fonts.css" rel="stylesheet">
    <!--标签插件-->
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/static/admin/js/jquery-tags-input/jquery.tagsinput.min.css">
    <link href="${pageContext.request.contextPath}/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
<!--页面主要内容-->
<main class="ftdms-layout-content">

    <div class="container-fluid" style="height: 1200px;">

        <div class="row" style="margin-top:15px;">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">

                        <form action="commodityadd.action" method="post" class="row" enctype="multipart/form-data">
                            <div class="form-group col-md-12">
                                <label>商品名称</label>
                                <input type="text" class="form-control" id="comName" name="comName" value=""
                                       placeholder="请输入标题" required/>
                            </div>
                            <div class="form-group col-md-12">
                                <label>商品价格</label>
                                <input type="text" class="form-control" id="comPrice" name="comPrice" value=""
                                       placeholder="请输入标题" required/>
                            </div>
                            <div class="form-group col-md-12">
                                <label>商品照片</label>
                                <input type="file" class="form-control" id="file" name="file" <%--formenctype="multipart/form-data"--%>
                                       placeholder="请输入标题" required/>
                            </div>
                            <input type="hidden" class="form-control" id="comStateId" name="comStateId" value="2">
                            <div class="form-group col-md-12">
                                <label>商品分类</label>
                                <select class="form-control" name="cateId">
                                    <c:forEach items="${commoditycategorplist}" var="commoditycategorp">
                                        <option value="${commoditycategorp.cateId}">${commoditycategorp.cateName}</option>
                                    </c:forEach>
                                </select>
                            </div>
                            <div class="form-group col-md-12">
                                <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定
                                </button>
                                <button type="button" class="btn btn-default"
                                        onclick="javascript:history.back(-1);return false;">返 回
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>

    </div>

</main>
<!--End 页面主要内容-->
</div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/bootstrap.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/admin/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="${pageContext.request.contextPath}/static/admin/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/main.min.js"></script>
</body>

</html>